package com.company.planner.service;

import com.company.planner.entity.EsClusterConfig;
import com.company.planner.entity.Indexs;
import org.elasticsearch.client.RestHighLevelClient;

import java.util.List;

public interface EsService {
    String NAME = "planner_EsService";

    RestHighLevelClient loadEsRestHighLevelClient(String ip, int port);

    boolean buildClusterState(String ip, int port);

    void batchAddEsClusterConfig(List<EsClusterConfig> esClusterConfigs);

    boolean existEsClusterConfig(String clusterName);

    boolean existIkAnalysisRule(Indexs indexs);
}